package com.n5x.common.util;

import java.util.Random;

/**
 * Created by Administrator on 2017/12/12.
 */
public class PublicUtils {

    /**
     * 产生随机的六位数
     * @return
     */
    public static String getSix(){
        Random rad=new Random();

        String result  = rad.nextInt(1000000) +"";

        if(result.length()!=6){
            return getSix();
        }
        return result;
    }
}
